﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EntGuayasSLA.BL;
using EntGuayasSLA.BL.Listas;
using EntGuayasSLA.BL.Listas.Criterias;
using Ext.Net;

namespace EGuayas.Web.Auditoria.Admin.Cumplimiento.tabs
{
    //Constantes.ATDR
    public partial class pgTdr : pgBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                var id = Request["acu_id"];
                CloseTabs(TabPanel1, 1);
            }
        }
    
        /// <summary>
        /// Inicializar 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnCorrDocTdrAdded(object sender, ComponentAddedEventArgs e)
        {
            Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
            SetCustomConfigWucAllAud(panel, Constantes.ATDR, Valores.Modulo_Archivo_Aud_Cump, SessionPage.PageGestionAdminAudCumpEdit, Request["acu_id"], Request["exp_id"], Request["exa_id"]);
        
        }
        /// <summary>
        /// Inicializar constante de Borrardor
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnTareasAudTdrAdded(object sender, ComponentAddedEventArgs e)
        {
            Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
            SetCustomConfigWucAllAud(panel, Constantes.ATDR, Valores.Modulo_Tarea_Aud_Cump, SessionPage.PageGestionAdminAudCumpEdit, Request["acu_id"], Request["exp_id"], Request["exa_id"]);
           
        }
        protected void OnInformeAdded(object sender, ComponentAddedEventArgs e)
        {
            Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
            SetCustomConfigWucAllAud(panel, Constantes.ATDR, Valores.Modulo_Archivo_Informes_Aud_Cump, SessionPage.PageGestionAdminAudCumpEdit, Request["acu_id"], Request["exp_id"], Request["exa_id"]);
        }
       
    }


}